package com.atguiugu.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;


/**
 * @Date 2021/7/26 10:23
 * @Created by wangle
 * @Description
 */
@Slf4j
@RestController
public class Paymentcontroller {

    @Value("${server.port}")
    private String serverPort;

  
    @GetMapping("/payment/consul")
    public String paymentInfo()
    {
        return "springcloud with consul: "+serverPort+"\t\t"+ java.util.UUID.randomUUID().toString();
    }


}
